Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement batch construction for strings columns #17035

Merged
merged 40 commits into from
Oct 17, 2024

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Oct 9, 2024

This implements batch construction of strings columns, allowing to create a large number of strings columns at once with minimal overhead of kernel launch and stream synchronization. There should be only one stream sync in the entire column construction process.

Benchmark: #17035 (comment)

Closes #16486.

@ttnghia ttnghia added feature request New feature or request 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. Performance Performance related issue Spark Functionality that helps Spark RAPIDS strings strings issues (C++ and Python) non-breaking Non-breaking change labels Oct 9, 2024
@ttnghia ttnghia self-assigned this Oct 9, 2024
@github-actions github-actions bot added the CMake CMake build issue label Oct 9, 2024
@rapidsai rapidsai deleted a comment from copy-pr-bot bot Oct 9, 2024
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@davidwendt
Copy link
Contributor

Does this supersede #16727? Can that one be closed?

@ttnghia ttnghia mentioned this pull request Oct 11, 2024
3 tasks
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
This reverts commit c981e99.
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 12, 2024

There seems to be a failed test and I can't reproduce it locally. Convert into draft while investigating.

@ttnghia ttnghia marked this pull request as draft October 12, 2024 06:33
Signed-off-by: Nghia Truong <[email protected]>
@davidwendt davidwendt self-requested a review October 13, 2024 22:01
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 14, 2024

Found the cause of issue, which should be fixed by #17074. Now wait for it to be merged first.

@ttnghia ttnghia marked this pull request as ready for review October 14, 2024 18:00
}
}();
auto chars_data =
make_chars_buffer(offsets_column->view(), bytes, begin, strings_count, stream, mr);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this could replace gather_chars in

auto out_chars_data = gather_chars(

Out of scope for this PR I think. I can make a note to look into this in a follow on PR.

Copy link
Member

@PointKernel PointKernel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new feature is awesome. Thanks! @ttnghia

@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 17, 2024

/merge

@rapids-bot rapids-bot bot merged commit 5f863a5 into rapidsai:branch-24.12 Oct 17, 2024
101 checks passed
@ttnghia ttnghia deleted the strings_batch_construction branch October 17, 2024 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress CMake CMake build issue feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Performance Performance related issue Spark Functionality that helps Spark RAPIDS strings strings issues (C++ and Python)
Projects
Status: Done
Status: No status
Development

Successfully merging this pull request may close these issues.

[FEA] Support batch construction of strings columns
3 participants